package com.laoyao.beans;

import java.util.HashMap;
import java.util.Map;

public class TrieNode {
	private  char value;
	private Map<Character,TrieNode> children;
	private int length;
	private TrieNode fail;
	
	TrieNode(char value){
		this.value=value;
		this.children = new HashMap<Character, TrieNode>();
	}
	
	public TrieNode getFail() {
		return fail;
	}
	public void setFail(TrieNode fail) {
		this.fail = fail;
	}
	public  char getValue() {
		return this.value;
	}
	public  void setValue(char value) {
		this.value = value;
	}
	public Map<Character, TrieNode> getChildren() {
		return children;
	}
	public void setChildren(Map<Character, TrieNode> children) {
		this.children = children;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
		
	
}
